<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro"
      xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>查看公司信息</title>
    <link th:replace="common/header"/>
</head>
<body class="no-skin">
<div th:replace="common/top"/>
<div class="main-container ace-save-state" id="main-container">
    <div th:replace="common/menu"/>
    <div class="main-content">
        <div class="main-content-inner">
            <div th:replace="common/title"/>
            <div class="page-content">
                <div th:replace="common/skin"/>
                <div class="row">
                    <div class="col-xs-12">
                        <!-- PAGE CONTENT BEGINS -->
                        <h3 class="header smaller lighter blue"><i class="fa fa-server" aria-hidden="true"></i>查看公司信息
                        </h3>
                        <div class="row-fluid">
                            <!--PAGE CONTENT BEGINS HERE-->
                            <div class="span3">
                                <div class="control-group">
                                    公司名称:<span th:text="${companyInfo.companyName}">1</span>
                                </div>
                            </div>
                            <div class="span3">
                                <div class="control-group">
                                    公司地址:<span th:text="${companyInfo.companyAddress}">1</span>
                                </div>
                            </div>
                            <div class="span3">
                                <div class="control-group">
                                    法人:<span th:text="${companyInfo.businessMan}">1</span>
                                </div>
                            </div>
                            <div class="span3">
                                <div class="control-group">
                                    联系电话:<span th:text="${companyInfo.phone}">1</span>
                                </div>
                            </div>
                        </div>
                        <div class="row-fluid">
                            <div class="span3">
                                <div class="control-group">
                                    公司类型:<span th:text="${companyInfo.type.text}">1</span>
                                </div>
                            </div>
                            <div class="span3">
                                <div class="control-group">
                                    注册资本:<span
                                        th:text="${#numbers.formatDecimal(companyInfo.registeredCapital, 1, 2)}">1</span>
                                </div>
                            </div>
                            <div class="span3">
                                <div class="control-group">
                                    经营状态:<span th:text="${companyInfo.status.text}">1</span>
                                </div>
                            </div>
                            <div class="span3">
                                <div class="control-group">
                                    电子邮箱:<span th:text="${companyInfo.email}">1</span>
                                </div>
                            </div>
                        </div>
                        <div class="row-fluid">
                            <div class="span3">
                                <div class="control-group">
                                    成立日期:
                                    <span th:text="${companyInfo.createDate ne null ? #dates.format(companyInfo.createDate, 'yyyy年MM月dd日') : ''}">1</span>
                                </div>
                            </div>
                            <div class="span3">
                                <div class="control-group">
                                    企业网址:<span th:text="${companyInfo.url}">1</span>
                                </div>
                            </div>
                            <div class="span3">
                                <div class="control-group">
                                    公司代码:<span th:text="${companyInfo.companyCode}">1</span>
                                </div>
                            </div>
                            <div class="span3">
                                <div class="control-group">
                                    公司性质:<span th:text="${companyInfo.companyNature}">1</span>
                                </div>
                            </div>
                        </div>
                        <div class="row-fluid">
                            <div class="span3">
                                <div class="control-group">
                                    现公司地址:<span th:text="${companyInfo.nowAddress}">1</span>
                                </div>
                            </div>
                            <div class="span3">
                                <div class="control-group">
                                    是否包含分公司:<span th:text="${companyInfo.subCompany == '0' ? '是': '否'}">1</span>
                                </div>
                            </div>
                            <div class="span3">
                                <div class="control-group">
                                    员工数量:<span th:text="${companyInfo.staffNumber}">1</span>
                                </div>
                            </div>
                            <div class="span3">
                                <div class="control-group">
                                    经营范围:<span th:text="${companyInfo.scope}">1</span>
                                </div>
                            </div>
                        </div>
                        <div class="row-fluid">
                            <div class="span12">
                                <div class="control-group">
                                    所在省市区:<span th:text="${companyInfo.provinceName} + '-' + ${companyInfo.cityName}
                                   + '-' + ${companyInfo.regionName}">1</span>
                                </div>
                            </div>
                        </div>
                        <div class="row-fluid">
                            <div class="text-center span12">
                                <a class="btn" shiro:hasPermission="/companyInfo/getAll" href="getAll"
                                   th:href="@{/companyInfo/getAll}"><i class="fa fa-reply"
                                                                       aria-hidden="true"></i>返回</a>
                            </div>
                        </div>
                        <!-- PAGE CONTENT ENDS -->
                    </div><!-- /.col -->
                </div><!-- /.row -->
            </div><!-- /.page-content -->
        </div>
    </div><!-- /.main-content -->
    <div th:replace="common/footer"/>
</div><!-- /.main-container -->
<div th:replace="common/buttom"/>

<form id="form" name="form" th:action="@{/companyInfo/getAll}" th:method="post" th:object="${companyInfoForm}">
    <input type="hidden" id="province" name="province" th:value="*{province}"/>
    <input type="hidden" id="city" name="city" th:value="*{city}"/>
    <input type="hidden" id="region" name="region" th:value="*{region}"/>
</form>

<link rel="stylesheet" th:href="@{/css/colorbox.min.css}"/>
<script th:src="@{/js/colorbox/jquery.colorbox.min.js}"></script>
<script th:src="@{/js/colorbox/colorbox.js}"></script>
</body>
</html>
